import Vue from 'vue';
import Tips from './main.vue';

let tipsConstructor = Vue.extend(Tips);
let instance;

const TipsBox = function(options = {}) {
  instance = new tipsConstructor({
    data: options
  }).$mount();  // 渲染组件
  document.body.appendChild(instance.$el);
}

export default TipsBox;